import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import rootReducers from './reducers';

const configure = (preloadState = {}) => {
  return createStore(rootReducers, {}, compose(applyMiddleware(thunk)));
};

export default configure;
